package com.cj.http;

import com.cj.Mapper.CoinMapper;
import com.cj.models.ResultModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/coin")
public class UserCoinForGet {

    @Autowired
    CoinMapper coinMapper;
    @GetMapping(path = "")
    public ResultModel alluser(){
        return new ResultModel("success",this.coinMapper.selectList(null));

    }
}
